package com.djl.sqtg.service.impl;

import com.djl.sqtg.entity.LightDeals;
import com.djl.sqtg.mapper.LightDealsMapper;
import com.djl.sqtg.service.ICartService;
import com.djl.sqtg.service.ILightDealsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LightDealsServiceImpl implements ILightDealsService {
    @Autowired
    private LightDealsMapper lightDealsMapper;

    @Override
    public List<LightDeals> getAllLightdeals() {
        return lightDealsMapper.getAllLightdeals();
    }

    @Override
    public Integer getAllLightdealsNum() {
        return lightDealsMapper.getAllLightdealsNum();
    }

    @Override
    public Integer updateLightdealsState(Integer lid, Integer state) {
        return lightDealsMapper.updateLightdealsState(lid,state);
    }

    @Override
    public Integer addLightdeals(LightDeals lightDeals) {
        return lightDealsMapper.addLightdeals(lightDeals);
    }

    @Override
    public Integer editLightdeals(LightDeals lightDeals) {
        return lightDealsMapper.editLightdeals(lightDeals);
    }
}
